package com.example.mapper;

import com.example.pojo.AccountDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AccountDetailMapper {

    @Select("select * from t_account_detail where user_id=#{userId} and del_flag=0 order by account_detail_id desc")
    @ResultMap("AccountDetailResult")
    List<AccountDetail> selectByUserId(Long userId);

    int insert(AccountDetail accountDetail);
}
